#include "line_flw.h"

uint16_t line_flw_getPinsstate(line_flw_t* line_flw)
{
    uint16_t states = 0;

    for (int i = 11; i >= 0; i--)
    {
        states |= key_is_pressed(line_flw->pins[i]) ? 1 : 0;
        states <<= 1;
    }

    states >>= 1;

    line_flw->pins_state = states;
    return states;
}
